<template>
  <div class="app-container">
    <!-- 查询 -->
    <tl-list-search ref="search" :query-param="queryParam" @search="doQuery" :isDisplayDefaultSearch="false" v-if="isHeaderDisplay">
      <template slot="search">
        <el-form-item label="编码" prop="code">
          <el-input v-model="queryParam.qry_code" placeholder=""></el-input>
        </el-form-item>
        <el-form-item label="名称">
          <el-input v-model="queryParam.qry_name" placeholder=""></el-input>
        </el-form-item>
      </template>
    </tl-list-search>
    <!-- 工具栏 -->
    <tl-list-toolbar ref="toolbar" @add="openAddDialog('editForm')" @exportExcel="doExportExcel" @deleteBatch="doDeleteBatch" @refresh="doRefresh" @columnCustomize="doColumnCustomize" @displaySearch="doDisplaySearch" :disableDeleteBatch="selectedRowKeys.length <= 0">
      <template slot="left-btn"> </template>
    </tl-list-toolbar>
    <div>
      <!-- 列表选择 -->
      <div class="table-alert-div" ref="selector">
        <el-alert type="success" :closable="false" class="tl-table-alert-info" effect="light">
          <template slot="title">
            已选择&nbsp;<a class="tl-table-alert-info-a1">{{ selectedRowKeys.length }}</a
            >项&nbsp;&nbsp;
            <a class="tl-table-alert-info-a2" @click="doClearSelected">全部清空</a>
          </template>
        </el-alert>
      </div>
      <!--表格渲染-->
      <el-table class="tl-table" ref="mainTable" :height="tableHeight" resizable-key="tableHeight" :resizable-refs="tableResizeRefs" v-loading="loading" :data="datas" @selection-change="doSelectChange" @sort-change="doSortChange" @row-dblclick="doRowDbClick" @row-click="doRowClick" row-key="id" border fit :row-class-name="doChangeRowClassName">
        <el-table-column type="selection" width="55px" fixed="left" :selectable="doDisableCheckBox"></el-table-column>
        <el-table-column type="index" label="序号" width="55px" align="center"></el-table-column>
				<el-table-column prop="ordercode" label="序号" width="150px" sortable="custom" sort-by="ordercode" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="taskname" label="任务名称" width="150px" sortable="custom" sort-by="taskname" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="taskdetail" label="任务内容" width="150px" sortable="custom" sort-by="taskdetail" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="taskcode" label="任务编号" width="150px" sortable="custom" sort-by="taskcode" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="responsiblecode" label="责任人工号" width="150px" sortable="custom" sort-by="responsiblecode" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="responsible" label="责任人" width="150px" sortable="custom" sort-by="responsible" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="planstartdate" label="计划开始日期" width="170px" sortable="custom" sort-by="planstartdate" align="center" header-align="center" :formatter="dateTimeFormat" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="planenddate" label="计划完成日期" width="170px" sortable="custom" sort-by="planenddate" align="center" header-align="center" :formatter="dateTimeFormat" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="actualstartdate" label="实际开始时间" width="170px" sortable="custom" sort-by="actualstartdate" align="center" header-align="center" :formatter="dateTimeFormat" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="actualenddate" label="实际完成时间" width="170px" sortable="custom" sort-by="actualenddate" align="center" header-align="center" :formatter="dateTimeFormat" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="taskdistributedate" label="任务派发时间" width="170px" sortable="custom" sort-by="taskdistributedate" align="center" header-align="center" :formatter="dateTimeFormat" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="taskschedule" label="任务进度" width="150px" sortable="custom" sort-by="taskschedule" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="taskstate" label="任务状态" width="150px" sortable="custom" sort-by="taskstate" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="milepostname" label="所属里程碑名称" width="150px" sortable="custom" sort-by="milepostname" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="milepostcode" label="所属里程碑编码" width="150px" sortable="custom" sort-by="milepostcode" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="projectcode" label="项目编号" width="150px" sortable="custom" sort-by="projectcode" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="projectname" label="项目名称" width="150px" sortable="custom" sort-by="projectname" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="tasktype" label="任务类型" width="150px" sortable="custom" sort-by="tasktype" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="taskpriority" label="任务优先级" width="150px" sortable="custom" sort-by="taskpriority" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="operationdeptname" label="运营部门" width="150px" sortable="custom" sort-by="operationdeptname" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="operationdeptcode" label="运营部门编码" width="150px" sortable="custom" sort-by="operationdeptcode" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="operationorgname" label="运营公司" width="150px" sortable="custom" sort-by="operationorgname" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="operationorgcode" label="运营公司编码" width="150px" sortable="custom" sort-by="operationorgcode" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="applyorgname" label="申请公司" width="150px" sortable="custom" sort-by="applyorgname" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="applyorgcode" label="申请公司编码" width="150px" sortable="custom" sort-by="applyorgcode" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="applydeptname" label="申请部门" width="150px" sortable="custom" sort-by="applydeptname" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="applydeptcode" label="申请部门编码" width="150px" sortable="custom" sort-by="applydeptcode" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="orgcode" label="所属公司" width="150px" sortable="custom" sort-by="orgcode" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="deptcode" label="所属部门" width="150px" sortable="custom" sort-by="deptcode" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="applyusername" label="申请人姓名" width="120px" sortable="custom" sort-by="applyusername" align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="applyusercode" label="申请人工号" width="150px" sortable="custom" sort-by="applyusercode" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="username" label="申请人姓名2" width="150px" sortable="custom" sort-by="username" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="usercode" label="申请人工号2" width="150px" sortable="custom" sort-by="usercode" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="docdate" label="单据日期" width="170px" sortable="custom" sort-by="docdate" align="center" header-align="center" :formatter="dateTimeFormat" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="docno" label="单据编号" width="150px" sortable="custom" sort-by="docno" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="submitdate" label="提交时间" width="170px" sortable="custom" sort-by="submitdate" align="center" header-align="center" :formatter="dateTimeFormat" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="dispflowid" label="审批流程" width="100px" sortable="custom" sort-by="flowid" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="dispstate" label="单据状态" width="100px" sortable="custom" sort-by="state" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="latestphase" label="最新阶段" width="150px" sortable="custom" sort-by="latestphase" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="description" label="备注" min-width="250px" align="left" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="enabled" label="有效" width="100px" sortable="custom" sort-by="enabled" align="center" header-align="center">
					<template slot-scope="scope">
						<el-tag v-if="scope.row.enabled === 1" type="success">是</el-tag>
						<el-tag v-else type="danger">否</el-tag>
					</template>
				</el-table-column>
				<el-table-column prop="applydate" label="申请日期" width="170px" sortable="custom" sort-by="applydate" align="center" header-align="center" :formatter="dateTimeFormat" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="taskexplain" label="任务说明" width="150px" sortable="custom" sort-by="taskexplain" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="istemplate" label="是否来源于模板" width="150px" sortable="custom" sort-by="istemplate" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="tasktemplateid" label="任务模板id" width="150px" sortable="custom" sort-by="tasktemplateid" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="post" label="关键决策客户部门职务" width="150px" sortable="custom" sort-by="post" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="dispcustomerapproval" label="任务支持程度" width="100px" sortable="custom" sort-by="customerapproval" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="customerattach" label="客户接触现状" width="150px" sortable="custom" sort-by="customerattach" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="dispneedsupport" label="是否需要系统部支持" width="100px" sortable="custom" sort-by="needsupport" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="improveplan" label="关键客户关系提升计划" width="150px" sortable="custom" sort-by="improveplan" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="isneedcustomer" label="是否必填客户决策分析" width="150px" sortable="custom" sort-by="isneedcustomer" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="tasktarget" label="任务目标" width="150px" sortable="custom" sort-by="tasktarget" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="dispcopyedit" label="复制后是否修改" width="100px" sortable="custom" sort-by="copyedit" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="copysourcetype" label="复制来源类型" width="150px" sortable="custom" sort-by="copysourcetype" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="copysourceid" label="复制来源id" width="150px" sortable="custom" sort-by="copysourceid" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="disptaskupdatefre" label="任务更新频次" width="100px" sortable="custom" sort-by="taskupdatefre" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="taskupdatedate" label="任务更新时间" width="170px" sortable="custom" sort-by="taskupdatedate" align="center" header-align="center" :formatter="dateTimeFormat" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="dmdtask" label="是否为短名单任务" width="150px" sortable="custom" sort-by="dmdtask" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="disphavenamelist" label="是否获取决策链名单" width="100px" sortable="custom" sort-by="havenamelist" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="dispintonamelist" label="是否进入短名单" width="100px" sortable="custom" sort-by="intonamelist" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="performancescore" label="履约评价/运行绩效得分" width="150px" sortable="custom" sort-by="performancescore" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="performancerank" label="履约评价/运行绩效排名" width="150px" sortable="custom" sort-by="performancerank" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="dispreviewmeetname" label="是否获取审查会决策链名单" width="100px" sortable="custom" sort-by="reviewmeetname" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="guoscore" label="国网供应商绩效评价得分" width="150px" sortable="custom" sort-by="guoscore" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="guorank" label="国网供应商绩效评价排名" width="150px" sortable="custom" sort-by="guorank" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="guoposition" label="国网供应商绩效评价档位" width="150px" sortable="custom" sort-by="guoposition" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="nankeepscore" label="南网履约评价得分" width="150px" sortable="custom" sort-by="nankeepscore" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="nankeeprank" label="南网履约评价排名" width="150px" sortable="custom" sort-by="nankeeprank" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="nanmovescore" label="南网运行评价得分" width="150px" sortable="custom" sort-by="nanmovescore" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="nanmoverank" label="南网运行评价排名" width="150px" sortable="custom" sort-by="nanmoverank" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="dispreviewmeetingdocument" label="已获取审查会文件内容" width="100px" sortable="custom" sort-by="reviewmeetingdocument" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="planid" label="策划id" width="150px" sortable="custom" sort-by="planid" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="tasksourceid" label="源任务id" width="150px" sortable="custom" sort-by="tasksourceid" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
        <el-table-column label="操作" width="220px" v-slot="scope" fixed="right">
          <el-button type="text" icon="el-icon-edit" @click="openEditDialog('editForm', scope.row.id)">编辑</el-button>
          <el-button type="text" icon="el-icon-delete" @click="doDelete(scope.row.id)">删除</el-button>
          <el-dropdown trigger="hover">
            <el-button type="text" icon="el-icon-s-operation" style="margin-left:10px">更多<i class="el-icon-arrow-down el-icon--right"></i></el-button>
            <el-dropdown-menu>
              <el-dropdown-item icon="el-icon-view" @click.native="openViewDialog('editForm', scope.row.id)">查看</el-dropdown-item>
            </el-dropdown-menu>
          </el-dropdown>
        </el-table-column>
      </el-table>
      <!-- 列表分页 -->
      <el-row class="pagebar" ref="pager">
        <el-pagination @size-change="doChangeSize" @current-change="doChangeIndex" :current-page="pageInfo.currentPage" :page-sizes="pageInfo.pageSizes" :total="pageInfo.totalCount" layout="total, sizes, prev, pager, next, jumper" background class="tl-table-pagination"> </el-pagination>
      </el-row>
      <tl-edit ref="editForm" @refresh="doRefresh"></tl-edit>
    </div>
  </div>
</template>

<script>
/** mixins */
import { mixin_list } from '@tapui/mixins/mixin_list'
/** 子组件 */
import tlEdit from './edit'
/** 工具类 */
import { getAction, putAction, postAction, deleteAction } from '@tapui/utils/http'
export default {
  name: 'mpmProjectTaskHistory',
  mixins: [mixin_list],
  components: { tlEdit },
  data() {
    return {
      description: '项目任务历史表-列表查询',
      urlPrefix: '/mpm/projectTaskHistory/',
      url: {
        // queryCodeList: '/mpm/projectTaskHistory/dataCodeList'
      },
      // 排序参数
      sorterInfo: {
        sidx: 'sortcode',
        sord: 'asc'
      }
    }
  },
  methods: {

  }
}
</script>

<style scoped></style>

